<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>accordion</title>
    <link rel="stylesheet" href="../../model/view.css">
</head>
<body>
<div class="catalog">
    <h2>目录</h2>
    <ul>
        <li>
            <p><a href="#element">< accordion ></a></p>
        </li>
        <li>
            <p><a href="#style">类型</a></p>
            <ul id="catalog_style">

            </ul>
        </li>
    </ul>
</div>
<div id="element">
    <h2>accrodion</h2>
    <div>简介:</div>
    <p>可以嵌套多个控件</p>
</div>
<div id="style"></div>
<div></div>
<script src="../../js/script_min.js"></script>
<script src="../../model/view.js"></script>
<script>
    let accordion = new view("accordion");
    accordion.init([
        {style:1,data:[
            {img:"img/accordion.png",code:`  <accordion id="coor" height="50" img="img.tuandui.jpg">
            <title background="#00000000" height="48">
                <lp font="#ff0000,17">帮助与建议</lp>
                <limg attr="48" click="document.finish();">img.back.png</limg>
            </title>
        </accordion>`,title:"经典款"},

        ]},

    ]);
</script>
<div class="author"><p>by-姜进</p></div>
</body>
</html>